import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.scss';
import App from './App';
// 入口文件引入重置样式表 
import 'normalize.css'
// 引入BrowserRouter 并且设置别名包裹根组件
import { BrowserRouter as Router } from 'react-router-dom'
// 引入仓库
import store from './store/store';
import { Provider } from 'react-redux'
const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
root.render(
  <Router>
    <Provider store={store}>
      <App />
    </Provider>
  </Router>
);
